<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<jsp:useBean id="con000" class="com.tpc.control.bean.Con000"
	scope="session" />
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
if (con000.getLogon() == null || !con000.getLogon())
	response.sendRedirect(basePath+"/con000/con000.faces");
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	<base href="<%=basePath%>">
	<title>CON-110: Reservation Report</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" type="text/css" href="./css/custom.css">
	<link rel="stylesheet" type="text/css" href="./css/template01.css">
</head>
  
<body>
	<div id="wrapper">
	<f:view>
		<f:loadBundle var="bundle"
				basename="com.tpc.control.message.ResourceBundle" />
		<div id="header">
			<p><h:outputText value="#{bundle.project_name}"/></p>		 	   
		</div>
        <div id="navigation">
        	<h:outputText value="#{bundle.con110}" styleClass="header2"/>
		</div>		
			<div id="content">				
			<h:form id="con110Form">
			<h:messages errorStyle="color: #FF0000; font-style: italic; font-weight: bold"></h:messages>
			<rich:panel style="width: 700px">
				<f:facet name="header">
					<h:outputText value="กรุณาเลือกข้อมููล"/>
				</f:facet>
				<h:panelGrid columns="4">
					<h:outputText value="เลขที่ใบจอง"/>
					<h:inputText value="#{con110.item_no}"/>
					<h:outputText value=""/>
					<h:outputText value=""/>
					<h:outputText value="รหัสลูกค้า"/>
					<h:inputText value="#{con110.customer_no}" />
					<h:outputText value=""/>
					<h:outputText value=""/>
					<h:outputText value="แผนก"/>
					<h:inputText value="#{con110.division}" />
					<h:outputText value=""/>
					<h:outputText value=""/>
					<h:outputText value="กำหนดส่ง"/>
					<rich:calendar value="#{con110.date_low}" datePattern="dd.MM.yyyy" locale="th_US"/>
					<h:outputText value="ถึง"/>
					<rich:calendar value="#{con110.date_high}" datePattern="dd.MM.yyyy" locale="th_US"/>
					<h:outputText value="วันที่สร้างใบจอง"/>
					<rich:calendar value="#{con110.date_reserve_low}" datePattern="dd.MM.yyyy" locale="th_US"/>
					<h:outputText value="ถึง"/>
					<rich:calendar value="#{con110.data_reserve_high}" datePattern="dd.MM.yyyy" locale="th_US"/>
					</h:panelGrid>
					

					</rich:panel>
					
			<h:commandButton action="#{con110.go111}" value="แสดงรายงาน(ปกติ)" actionListener="#{con110.showReport}"style="width: 200px"/><h:commandButton action="con112" value="แสดงรายงาน(Confirm Lab)"  style="width: 200px" actionListener="#{con110.showReportConfirmLab}"/>
			</h:form>
			</div>  
			<div id="footer">
				<h:form id="footerForm">
					<h:panelGrid columns="2" width="500px" styleClass="normal2">
					<h:panelGroup>
						<h:outputText value="#{bundle.current_user}" styleClass="headerSubject"/>
						<h:outputText value="#{con000.userName}"/>
					</h:panelGroup>
					<h:panelGroup>
					<h:commandLink value="Main Menu" action="con001" styleClass="header2"></h:commandLink>
					<h:outputText value="|"/>
					<h:commandLink value="Logoff" action="#{con000.logoff}" styleClass="header2"></h:commandLink>
					</h:panelGroup>
					</h:panelGrid>
				</h:form>
			</div>
	</f:view>
	</div>
</body>
</html>